<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../../jquery/jquery-1.12.4.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				var i = 0;
				setInterval(function() {
					var a = new Array();
					a[0] = "1.jpg";
					a[1] = "2.jpg";
					a[2] = "3.jpg";
					a[3] = "4.jpg";
					a[4] = "5.jpg";
					$('#a>img').attr('src', a[i]);
					i++;
					if (i > 4) {
						i = 0;
					}
				}, 1000)

			})
		</script>

	</head>
	<body>
		<div id="a" align="center">
			<img src="1.jpg">
		</div>

	</body>
</html>